package java8;

import java.util.Scanner;

public class Code106 {
	public static void main(String[] args) {
		int[] scores=new int[5];
		int max=0;
		System.out.println("请输入五位学员的成绩:");
		Scanner input=new Scanner(System.in);
		for(int i=0;i<scores.length;i++){
			scores[i]=input.nextInt();
		}
		max=scores[0];
		for(int i=1;i<scores.length;i++){
			if(scores[i]>max){
				max=scores[i];
			}		
		}
		System.out.println("最大值为"+max);
	}
}
